
<?php if(isset($success_validate)){ echo '<div class="alert alert-success"><a class="close" data-dismiss="alert" href="#">&times;</a>' . $success_validate . '</div>'; }?>
<?php echo validation_errors(); ?>

<?php echo form_open('',array('id'=>'user_register','class' => 'form-horizontal')); ?>
	<fieldset>
          <h3>Thông tin thành viên</h3>
          <div class="control-group">
		<label class="control-label" for="fullname">Họ & Tên</label>
		<div class="controls">
		  <input type="text" class="input-xlarge required" id="fullname" name="fullname" maxlength="150">
		</div>
	  </div>
          <div class="control-group">
		<label class="control-label" for="cmnd">CMND</label>
		<div class="controls">
		  <input type="text" class="input-xlarge digits" id="cmnd" name="cmnd" maxlength="10">
		</div>
	  </div>
	  <div class="control-group">
		<label class="control-label" for="address">Địa chỉ</label>
		<div class="controls">
		  <input type="text" class="input-xlarge required" name="address" id="address" maxlength="255">
		</div>
	  </div>
	  <div class="control-group">
		<label class="control-label" for="email">Email</label>
		<div class="controls">
		  <input type="text" class="input-xlarge required email" name="email" id="email" maxlength="100">
		</div>
	  </div>
	  <div class="control-group">
		<label class="control-label" for="birthday">Ngày sinh</label>
		<div class="controls">
		  <input type="text" class="input-xlarge required" name="birthday" id="birthday" maxlength="20">
		</div>
	  </div>
	  <div class="control-group">
		<label class="control-label" for="phone">Điện thoại</label>
		<div class="controls">
		  <input type="text" class="input-xlarge required" name="phone" id="phone" minlength="9" maxlength="15">
		</div>
	  </div>
	  <div class="control-group">
		<label class="control-label" for="district">Quận / Huyện</label>
		<div class="controls">
		  <select id="district" class="required" name="district" disabled="disabled">
			<option value="">Vui lòng chọn thành phố trước</option>
		  </select>
		</div>
	  </div>
	  <div class="control-group">
		<label class="control-label" for="district">Thành phố</label>
		<div class="controls">
		  <?php  $province = getProvince(); ?>
		  <?php if($province):?>
			  <select id="province" class="required" name="province">
				  <option value="">Vui lòng chọn thành phố</option>
				  <?php foreach($province as $item):?>
				  <option value="<?php echo $item->id;?>"><?php echo $item->name;?></option>
				  <?php endforeach;?>
			  </select>
		  <?php endif;?>
		</div>
	  </div>
	  <div class="form-actions">
		<button type="submit" class="btn">Đăng ký</button>
		<button type="reset" class="btn">Làm lại</button>
	  </div>
	</fieldset>
</form>